<meta charset="utf-8">
<div data-page="form-list" class="page navbar-through no-toolbar note-list">
	<div class="navbar">
		<div class="navbar-inner">
			<div class="left">
				<a href="#" class="link back icon-only"><i class="ti-arrow-circle-left"></i></a>
			</div>
			<div class="center">我的报表</div>
			<div class="right">
				<a href="<%=sails.config.application.appPrefix%>/form/select" class="link icon-only"><i class="ti-plus"></i></a>
			</div>
			<div class="subnavbar">
				<div class="buttons-row">
					<a href="#" class="button prev" current="<%=current%>">上一月</a>
					<a class="button active"><%=current%></a>
					<a href="#" class="button next" current="<%=current%>">下一月</a>
				</div>
			</div>
		</div>
	</div>
	
	<div class="page-content with-subnavbar">
		<div class="list-block media-list leave-note-list">
			<ul>
			<% forms.forEach(function(form){ %>
			<% if (form.type.system == false) { %>
				<li class="swipeout">
				<a href="<%=sails.config.application.appPrefix%>/form/get?method=detail&pkid=<%= form.id%>" class="swipeout-content item-link item-content">
					<div class="item-inner">
						<div class="item-title-row">
							<div class="item-title"><%=form.name %></div>
							<div class="item-after"><%=sails.config.application.formState[form.state] %></div>
						</div>
						<div class="item-subtitle"><%= sails.formatTime(form.updatedAt)%></div>
					</div>
				</a>
				<div class="swipeout-actions-right">
					<% if (form.state == 0 || form.state == 1) { %>
					<a href="#" api-path="/api/form" class="delete-action sails-btn-delete" message="真的要删除吗？" pkid="<%= form.id%>">删除</a>
					<% } %>
				</div>
				</li>
			<% } %>
			<% }) %>
			</ul>
		</div>
	</div>
	
</div>